const key = "historyList"

export const getHistoryList = () => {
    try {
        return JSON.parse(uni.getStorageSync(key))
    } catch (error) {
        return []
    }
}

export const setHistoryList = (historyList) => {
    uni.setStorageSync(key, JSON.stringify(historyList))
}


export const removeHistoryList = () => {
    uni.removeStorageSync(key)
}
